//
//  GUIDatePickerView.h
//  DreamOf
//
//  Created by 薛小刚 on 2018/4/4.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, DatePickerType) {
    DatePickerModeTime,
    DatePickerModeDate,
    DatePickerModeDateAndTime,
    DatePickerModeCountDownTimer,
};
typedef void(^selectContent)(NSString * selectTime, BOOL isCancel);
@interface GUIDatePickerView : UIView
- (instancetype)initWithDataPickerType:(DatePickerType)type withSelectContent:(selectContent) block;
/// 是否有最大日期,
@property (nonatomic, copy) NSDate * maxDate;
/// 是否有最小日期,
@property (nonatomic, copy) NSDate * minDate;

/**
 显示时间选择器的

 @param controller 控制器
 */
- (void) showWithController:(UIViewController *)controller;
@end
